package main

import (
	"fmt"
	"time"
)

func main() {

	for i := 0; i < 10; i++ {
		go work(i)
	}
	time.Sleep(time.Second * 1)
	fmt.Println("main work done")

}

func work(i int) {
	time.Sleep(time.Millisecond * 100)
	fmt.Printf("work %d has done\n", i)
}
